package com.lagou.edu.biz;

import com.lagou.edu.service.impl.AnnotationConfigApplicationContext;
import com.lagou.edu.utils.PropertyUtil;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class ApplicationContextListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        new AnnotationConfigApplicationContext(PropertyUtil.getBasePackage());
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {

    }
}
